class DetailEntity {
	int code;
	DetailData data;
	String message;

	DetailEntity({this.code, this.data, this.message});

	DetailEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new DetailData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class DetailData {
	List<String> motion;
	String merchantStore;
	String stockNum;
	String platformpic;
	String description;
	String marking;
	String deaddate;
	String timeCn;
	String price;
	List<DetailDataAccountlist> accountList;
	String name;
	String priceGoods;
	String platname;
	String categoryname;
	String id;

	DetailData({this.motion, this.merchantStore, this.stockNum, this.platformpic, this.description, this.marking, this.deaddate, this.timeCn, this.price, this.accountList, this.name, this.priceGoods, this.platname, this.categoryname, this.id});

	DetailData.fromJson(Map<String, dynamic> json) {
		motion = json['motion']?.cast<String>();
		merchantStore = json['merchant_store'];
		stockNum = json['stock_num'];
		platformpic = json['platformpic'];
		description = json['description'];
		marking = json['marking'];
		deaddate = json['deaddate'];
		timeCn = json['timeCn'];
		price = json['price'];
		if (json['accountList'] != null) {
			accountList = new List<DetailDataAccountlist>();(json['accountList'] as List).forEach((v) { accountList.add(new DetailDataAccountlist.fromJson(v)); });
		}
		name = json['name'];
		priceGoods = json['priceGoods'];
		platname = json['platname'];
		categoryname = json['categoryname'];
		id = json['id'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['motion'] = this.motion;
		data['merchant_store'] = this.merchantStore;
		data['stock_num'] = this.stockNum;
		data['platformpic'] = this.platformpic;
		data['description'] = this.description;
		data['marking'] = this.marking;
		data['deaddate'] = this.deaddate;
		data['timeCn'] = this.timeCn;
		data['price'] = this.price;
		if (this.accountList != null) {
      data['accountList'] =  this.accountList.map((v) => v.toJson()).toList();
    }
		data['name'] = this.name;
		data['priceGoods'] = this.priceGoods;
		data['platname'] = this.platname;
		data['categoryname'] = this.categoryname;
		data['id'] = this.id;
		return data;
	}
}

class DetailDataAccountlist {
	String text;
	int type;
	String value;

	DetailDataAccountlist({this.text, this.type, this.value});

	DetailDataAccountlist.fromJson(Map<String, dynamic> json) {
		text = json['text'];
		type = json['type'];
		value = json['value'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['text'] = this.text;
		data['type'] = this.type;
		data['value'] = this.value;
		return data;
	}
}
